package com.ysd.twocrm.entity;

import com.baomidou.mybatisplus.annotation.TableName;

import java.util.List;
//模块表

public class ModulesTree {

    private Object id;//模块编号

    private String title;//模块名称

    private Integer parentid;//父模块编号

    private String path;//模块路径

    private Integer weight;//权重值

    private String icon;//模块图标

    private boolean checked=false;

    private boolean disabled=false;


    private List<ModulesTree> children;//子类

    private List<Permission> permissionList;

    public List<Permission> getPermissionList() {
        return permissionList;
    }

    public void setPermissionList(List<Permission> permissionList) {
        this.permissionList = permissionList;
    }
    public boolean isChecked() {
        return checked;
    }

    public void setChecked(boolean checked) {
        this.checked = checked;
    }

    public boolean isDisabled() {
        return disabled;
    }

    public void setDisabled(boolean disabled) {
        this.disabled = disabled;
    }


    @Override
    public String toString() {
        return "ModulesTree{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", parentid=" + parentid +
                ", path='" + path + '\'' +
                ", weight=" + weight +
                ", icon='" + icon + '\'' +
                ", checked=" + checked +
                ", disabled=" + disabled +
                ", children=" + children +
                ", permissionList=" + permissionList +
                '}';
    }

    public ModulesTree(Integer id, String title, Integer parentid, String path, Integer weight, String icon, List<ModulesTree> children) {
        this.id = id;
        this.title = title;
        this.parentid = parentid;
        this.path = path;
        this.weight = weight;
        this.icon = icon;
        this.children = children;
    }

    public ModulesTree() {
        super();
    }

    public Object getId() {
        return id;
    }

    public void setId(Object id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Integer getParentid() {
        return parentid;
    }

    public void setParentid(Integer parentid) {
        this.parentid = parentid;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public Integer getWeight() {
        return weight;
    }

    public void setWeight(Integer weight) {
        this.weight = weight;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public List<ModulesTree> getChildren() {
        return children;
    }

    public void setChildren(List<ModulesTree> children) {
        this.children = children;
    }
}
